package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 渠道短链接
 * </p>
 *
 * @author AppiJ
 * @since 2020-04-21
 */
@TableName("channel_short_url")
public class ChannelShortUrl implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 渠道配置id
	 */
	private Integer cid;

	/**
	 * 渠道id
	 */
	private Integer pid;

	/**
	 * 长网址
	 */
	@TableField(value="long_url")
	private String longUrl;

	/**
	 * 短网址
	 */
	@TableField(value="short_url")
	private String shortUrl;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	public ChannelShortUrl() {
	}

	public ChannelShortUrl(Integer cid, Integer pid, String longUrl, String shortUrl) {
		this.cid = cid;
		this.pid = pid;
		this.longUrl = longUrl;
		this.shortUrl = shortUrl;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getLongUrl() {
		return longUrl;
	}

	public void setLongUrl(String longUrl) {
		this.longUrl = longUrl;
	}

	public String getShortUrl() {
		return shortUrl;
	}

	public void setShortUrl(String shortUrl) {
		this.shortUrl = shortUrl;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
